<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateDayOrderReportsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('day_order_reports', function(Blueprint $table)
		{
			$table->increments('id');
			$table->float('total', 10)->default(0.00)->comment('订单总额');
			$table->integer('pay_total')->default(0)->comment('已付款订单总额');
			$table->integer('amount')->default(0)->comment('订单总数');
			$table->date('order_date')->comment('订单日期');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('day_order_reports');
	}

}
